var arTags=new Array(); //the global variable where we store the tags and their associated webpages' url/title

var loadDataFunction; //pointer to the function which loads the data and creates the tree

$(document).ready(function() {
//    loadMockupDataConfig();
    loadAjaxDataConfig();
    
    loadTreeEvents();
    
    loadMiscJqueryEvents();
    
//    loadDataFunction();
});



function loadMiscJqueryEvents() {
    $("#inputTag").keyup(function() { 
        if ($(this).val().length>=3)
            //minimum 3 letters
            loadDataFunction($(this).val());
    });
}